package com.haoxin.ai_course.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haoxin.ai_course.modules.gen.mapper.LineDataResp;
import com.haoxin.ai_course.modules.sys.entity.SysLog;

import java.util.List;

import org.apache.ibatis.annotations.Select;

/**
 * 系统日志
 */
public interface SysLogMapper extends BaseMapper<SysLog> {
	@Select( "select left(create_date,10) dayNO,count(1) dataCount from sys_log  where  `operation`='小程序-创建患者信息' group by left(create_date,10)")
	 List<LineDataResp> getLineData();
}
